package com.ttt.radioapp_core.listeners;

import android.content.Intent;
import android.net.Uri;
import android.view.View;
import android.view.View.OnClickListener;

import com.ttt.radioapp_core.helpers.Constants;

public class BannerOnClickListener implements OnClickListener {
	private Constants constants;
	
	public BannerOnClickListener(Constants constants) {
		super();
		this.constants = constants;
	}

	@Override
	public void onClick(View v) {

		// TODO: BannerOnClickListener es una copia del listener LogoRadioOnClickListener!!!
		
		Intent intent = new Intent(Intent.ACTION_VIEW, Uri
				.parse(constants.getUrlHomePage()));
		v.getContext().startActivity(intent);
	}

}